package com.icloud.article.boot.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.icloud.article.boot.dto.*;
import com.icloud.article.boot.model.HotArticle;
import com.icloud.article.boot.vo.AdminConsumptionVo;
import com.icloud.article.boot.vo.ArticleVo;
import com.icloud.article.boot.vo.ConsumptionVo;
import com.icloud.common.web.vo.PageVO;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 热帖service
 */

public interface HotArticleService extends IService<HotArticle> {

    ConsumptionVo consumption(ConsumptionDto dto);

    /**
     * 上热门
     * @param dto
     */
    boolean hot(ArticleHotDto dto);


    /**
     * 分页
     * @param dto
     * @return
     */
    PageVO<ArticleVo> hotPage(ArticleHotPageDto dto);

    /**
     * 查看热帖
     * @param dto
     * @return
     */
    ArticleVo detail(ArticleHotDetDto dto);

    Map<Long, BigDecimal> queryConsumption(List<Long> articleIdList);

    PageVO<AdminConsumptionVo> consumptionPage(AdminConsumptionPageDto dto);
}
